package com.sofian.chat.server;

import java.util.ArrayList;

import com.sofian.chat.client.ChatMessage;

public  class MessageShare {
	
	static ArrayList<ChatMessage> temp = null;
	
	public static ArrayList<ChatMessage> getMessages()
	{
		if(temp == null)
		{
			temp = new ArrayList<ChatMessage>();
			return temp;
		}
		else return temp;
	}

	public static void addMessages(ArrayList<ChatMessage> messages) {
		
		temp = messages;
	}

}
